$OpenBSD: patch-configure_ac,v 1.1 2012/05/02 19:01:53 naddy Exp $
--- configure.ac.orig	Sun Mar 20 13:30:19 2011
+++ configure.ac	Wed May  2 16:59:55 2012
@@ -100,10 +100,10 @@ dnl ***********************************
 XDT_CHECK_OPTIONAL_PACKAGE([APR], [apr-1], [0.9.7], [subversion], [libsvn])
 if test x"$APR_FOUND" = x"yes"; then
     found_subversion=yes
-    AC_CHECK_LIB([svn_subr-1], [main], , [found_subversion=no])
-    AC_CHECK_LIB([svn_fs-1], [main], , [found_subversion=no])
-    AC_CHECK_LIB([svn_wc-1], [main], , [found_subversion=no])
-    AC_CHECK_LIB([svn_client-1], [main], , [found_subversion=no])
+    AC_CHECK_LIB([svn_subr-1], [main], , [found_subversion=no], [$APR_LIBS])
+    AC_CHECK_LIB([svn_fs-1], [main], , [found_subversion=no], [$APR_LIBS])
+    AC_CHECK_LIB([svn_wc-1], [main], , [found_subversion=no], [$APR_LIBS])
+    AC_CHECK_LIB([svn_client-1], [main], , [found_subversion=no], [$APR_LIBS])
     if test x"$found_subversion" = x"yes"; then
         AC_DEFINE([HAVE_SUBVERSION], [1], [Define if libsvn is present])
     fi
